package model;

/**
 * Created by nuno-rafael-figueiredo on 17-03-2014.
 */
public abstract class HashEntity<Item> extends Entity<Integer, Item> {
    protected HashEntity(Class<Item[]> arrayClass, Class<Item> itemClass) {
        super(arrayClass, itemClass);
    }

    @Override
    protected final Integer getKey(Item item) {
        return item.hashCode();
    }
}
